import  React from  'react'



import Child  from './Child'
export  default    class   Parent   extends  React.Component {
  constructor() {
       super()

       this.state={
           data:'我是父组件'
       }
  }

  getSend=(data)=>{
     console.log(data)
  }
 
    render() {
        return(
            <div>
                <h3> Parent </h3>

                <Child  data={this.state.data}  send={this.getSend}/>
            </div>
        )
    }
}